{include file="common/headerRes" /}
<body>
    <!-- 头部 -->
    {include file="common/head"}
    <!-- /头部 -->
    
    <div class="main-container container-fluid">
        <div class="page-container">
                        <!-- Page Sidebar -->
            {include file="common/left"}
            <!-- /Page Sidebar -->
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                                        <li>
                        <a href="#">系统</a>
                    </li>
                                        <li>
                        <a href="{:url('lit')}">管理员列表</a>
                    </li>
                                        <li class="active">添加管理员</li>
                                        </ul>
                </div>
                <!-- /Page Breadcrumb -->

                <!-- Page Body -->
                <div class="page-body">
                    
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <div class="widget">
            <div class="widget-header bordered-bottom bordered-blue">
                <span class="widget-caption">新增管理员</span>
            </div>
            <div class="widget-body">
                <div id="horizontal-form">
                    <form class="form-horizontal" id="adminAdd" role="form" action="" method="post">
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">上级栏目</label>
                            <div class="col-sm-6">
                                <select name="pid">
                                    <option value="0">顶级栏目</option>
                                    {volist name="catePid" id="pid"}
                                        <option {if condition="$cateIdRes.pid eq $pid.id"}selected{/if} value="{$pid.id}">{$pid.level|str_repeat="---&nbsp;&nbsp;",###*1}{$pid.catename}</option>
                                    {/volist}
                                </select>
                            </div>
                            <p class="help-block col-sm-4 red">* 必填</p>
                        </div>
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">栏目标题</label>
                            <div class="col-sm-6">
                                <input class="form-control" id="username" placeholder="" name="catename" required="" type="text" value="{$cateIdRes.catename}">
                                <input class="form-control" placeholder="" name="id" type="hidden" value="{$cateIdRes.id}">
                            </div>
                            <p class="help-block col-sm-4 red">* 必填</p>
                        </div>
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">栏目类型</label>
                            <div class="col-sm-6">
                                <div class="radio">
                                    <label>
                                        <input name="type" {if condition="$cateIdRes.type == 1"}checked{/if} value="1" type="radio" class="colored-blue">
                                        <span class="text">单页</span>
                                    </label>
                                </div>
                                <div class="radio">
                                    <label>
                                        <input name="type" {if condition="$cateIdRes.type == 2"}checked{/if} value="2" type="radio" class="colored-blue">
                                        <span class="text">列表</span>
                                    </label>
                                </div>
                                <div class="radio">
                                    <label>
                                        <input name="type" {if condition="$cateIdRes.type == 3"}checked{/if} value="3" type="radio" class="colored-blue">
                                        <span class="text">图片</span>
                                    </label>
                                </div>
                            </div>
                        </div>  
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">栏目排序</label>
                            <div class="col-sm-6">
                                <input class="form-control" id="sort" placeholder="" name="sort" type="text" value="{$cateIdRes.sort}">
                            </div>
                        </div>  
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-default">保存信息</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
        </div>  
    </div>

        <!--Basic Scripts-->
    <script src="__STYLE__/jquery_002.js"></script>
    <script src="__STYLE__/bootstrap.js"></script>
    <script src="__STYLE__/jquery.js"></script>
    <!--Beyond Scripts-->
    <script src="__STYLE__/beyond.js"></script>
    </script>


</body></html>